﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public class Empty1 : MonoBehaviour
{

}
public  class QuickCoroutine : Singleton<QuickCoroutine>
{
    GameObject _coroutineRoot;
    MonoBehaviour _coroutineMono;//用来跑协程

    public void Init  ()
    {
        _coroutineRoot = new GameObject("QuickCoroutine");
       
        GameObject.DontDestroyOnLoad(_coroutineRoot);
        _coroutineMono = _coroutineRoot.AddComponent<Empty1>();
    }
    public Coroutine StartCoroutine(IEnumerator routine)
    {
        return _coroutineMono.StartCoroutine(routine);
    }
}
 
